﻿using System;
using System.Collections.Generic;
using HAVNet.Core.String;


namespace HAVNet.Intros.AST
{
    public class ASTExternAliasDirectives : List<ASTExternAliasDirective>
    {
        public override string ToString ()
        {
            return Strings.joinobjs (Environment.NewLine, this);
        }
    }

    public class ASTExternAliasDirective : ASTNode
    {
        // ej extern alias Identificador ;

        public readonly string ident = "";

        public ASTExternAliasDirective (string ident)
        {
            this.ident = ident;
        }

        public override string ToString ()
        {
            return string.Format (
                "extern alias {0};", ident
            );
        }
    }
}
